add sandbox sales-demo account - #1334
Open
Sharqiewicz wants to merge 8 commits into
Open
Conversation
❌ Deploy Preview for vrtx-dashboard failed. Why did it fail? →
|
✅ Deploy Preview for vortexfi ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
❌ Deploy Preview for vortex-sandbox failed. Why did it fail? →
|
The stored tokenHash was derived from a different string than the raw token the dashboard offers for re-copy, so the copied invite link resolved to no invitation.
getRampStatus rejects quotes without fees.displayFiat with a 500; seeded quotes carried only the USD denomination.
Individual (KYC) customer creation now reaches the real client instead of persisting an invented id that later real-client calls reject with confusing provider 404s. findCustomer no longer needs faking: it is only reachable from the real client's 409 recovery.
provider_customers is unique on (provider, provider_customer_id); a bare counter restarting at 1 could collide with rows persisted by a previous process.
Config snapshots are now taken before database setup can throw, the verify-otp route is exercised end to end so the login hook cannot be silently unwired, and installDemoProviders' successful swap path is covered alongside its refusal paths.
Deletes are scoped by corridor query and fixed ids; nothing reads the prefix predicate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
state, restorable on OTP login or via
bun run seed:demo. Restore isidempotent: every row it writes carries a fixed demo UUID prefix, so it can
never touch records created during a demo.
re-onboarded endlessly. Off by default (
DEMO_PROVIDER_ENABLED), because asandbox also serves partner integration testing, which must exercise the
real provider.
Networks.PolygonAmoywas missing from the Alchemylookup, so the dashboard funding gate read "balance unavailable" and blocked
registration on every sandbox offramp.
Safety
Both
config/vars.tsandinstallDemoProvidersrefuse to start the processwhen
DEMO_PROVIDER_ENABLED=trueoutsideDEPLOYMENT_ENV=sandbox. The loginhook returns before any DB access unless the deployment is sandbox and the
email matches
DEMO_ACCOUNT_EMAIL; it never creates or elevates an identity,and its errors are swallowed so it can neither grant nor deny a login.